package day240601;

import java.util.Scanner;

public class Student {
    String name;
    int age;
    String hometown;
    public Student(String name, int age, String hometown) {
        this.name = name;
        this.age = age;
        this.hometown = hometown;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHometown() {
        return hometown;
    }

    public void setHometown(String hometown) {
        this.hometown = hometown;
    }
    @Override
    public String toString() {
        return "Student{"+
                " name='" + name + '\'' +
                ", age=" + age +'\''+
                ", hometown='" + hometown + '\'' +
                '}';
    }

}
